import { configureStore } from "@reduxjs/toolkit";
import { userReducer } from "./userStore";
import { typeReducer } from "./typeStore";

export const store = configureStore({
    reducer:{
        // 各个切片的reducer函数
        userStore: userReducer,
        typeStore: typeReducer
    }
})

export type ROOTSTATE = ReturnType<typeof store.getState>